package day09_modi.demo13_Peptides;

public class Cat extends Animal {
    @Override
    public void eat() {
        System.out.println("猫吃鱼");
    }

    private String color;

    public Cat(String color) {
        this.color = color;
    }

    public Cat(int age, String name, String sex, String kind, String color) {
        super(age, name, sex, kind);
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    public void play(){
        System.out.println("玩球");
    }
}
